
<!-- saved from url=(0072)https://etax.jiangsu.chinatax.gov.cn/portal/zj/include.do?app_bh=0601212 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--<base href="/portal/">--><base href=".">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<!-- 控制360加载方式 -->
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9;IE=8">
<link href="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile//css/favicon.ico?v=1.0.12" rel="shortcut icon">
<script src="./网格化辅导消息推送_files/hm.js"></script><script type="text/javascript">
var basePath="/portal/";
var staticPath="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile/";
</script>

<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/base.css">
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/smartMenu.css">
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/easyui.css">
<script type="text/javascript" src="./网格化辅导消息推送_files/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/global.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/jquery.easyui.min.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/easyUIHandler.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/layer.js"></script><link rel="stylesheet" href="./网格化辅导消息推送_files/layer.css" id="layuicss-skinlayercss">

<script type="text/javascript" src="./网格化辅导消息推送_files/layerHandler.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/zrutil.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/calendar_plugins.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/mCustomScrollbar.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/time.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/time_show.js"></script> 
<script type="text/javascript" src="./网格化辅导消息推送_files/html5shiv.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/jquery-smartMenu.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/json2.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/treeHandler.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/tab_plugins.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/confirm.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/check.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/appinfo_plugins.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/solr.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/PrintReport.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="./网格化辅导消息推送_files/dialog.css">
<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/zTreeStyle.css">
<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/zTreeStyle_ext.css">
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/default.css">
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/jquery.mCustomScrollbar.css">
<script type="text/javascript" src="./网格化辅导消息推送_files/app_plugins.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/zx_dsf.js"></script>
<script type="text/javascript" src="./网格化辅导消息推送_files/tjapp.js"></script>
<script type="text/javascript">
	
	$(function(){
		 // 计算高度
		 $("#container_right").show();
		 getallwidth(); 
	});

</script>


<!-- 左侧菜单显示 start -->
<!-- 
<script type="text/javascript" src="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile//js/tree/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile//js/treeHandler.js"></script>
<link type="text/css"rel="stylesheet" href="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile//js/tree/zTreeStyle.css" >
<link type="text/css"rel="stylesheet" href="https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile//js/tree/zTreeStyle_ext.css" >
 -->
<!-- 左侧菜单显示 end -->











<!--<base href="/portal/">--><base href=".">
<meta http-equiv="expires" content="0">
<meta name="renderer" content="webkit">
<title>国家税务总局江苏省电子税务局</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<script type="text/javascript" src="./网格化辅导消息推送_files/json2.js"></script>
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/index.css">
<link rel="stylesheet" type="text/css" href="./网格化辅导消息推送_files/other_index.css">
<style type="text/css">
    .nav{text-align: left;}
    .nav a{vertical-align:middle;}
</style>
<script type="text/javascript">
    var basePath = "/portal/";
    var staticPath = "https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile/";
</script>


<style type="text/css">#_copy{align-items:center;background:#4494d5;border-radius:3px;color:#fff;cursor:pointer;display:flex;font-size:13px;height:30px;justify-content:center;position:absolute;width:60px;z-index:1000}#select-tooltip,#sfModal,.modal-backdrop,div[id^=reader-helper]{display:none!important}.modal-open{overflow:auto!important}._sf_adjust_body{padding-right:0!important}.enable_copy_btns_div{position:fixed;width:154px;left:10px;top:45%;background:#e7f1ff;border:2px solid #4595d5;font-weight:600;border-radius:2px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;z-index:5000}.enable_copy_btns_logo{width:100%;background:#4595d5;text-align:center;font-size:12px;color:#e7f1ff;line-height:30px;height:30px}.enable_copy_btns_btn{display:block;width:128px;height:28px;background:#7f5711;border-radius:4px;color:#fff;font-size:12px;border:0;outline:0;margin:8px auto;font-weight:700;cursor:pointer;opacity:.9}.enable_copy_btns_btn:hover{opacity:.8}.enable_copy_btns_btn:active{opacity:1}</style><script src="chrome-extension://knagohkjeeacioncgplacilibbkijkho/js/page_finish.js"></script><script src="./网格化辅导消息推送_files/tongji" type="text/javascript" async="" charset="utf-8"></script></head><body><div id="index">
    



<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<!-- 控制360加载方式 -->
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9;IE=8">
<link rel="stylesheet" href="./网格化辅导消息推送_files/index(1).css">
<!-- 搜索js -->
<script type="text/javascript" src="./网格化辅导消息推送_files/cookie_util.js"></script>
<script type="text/javascript">
    var basePath = "/portal/";
    var staticPath = "https://cdn.jiangsu.chinatax.gov.cn/etax/portal/u/staticfile/";
    var realNamePrefix = "https://etax.jiangsu.chinatax.gov.cn";
    var glybz = "Y";
</script>
<style>
    .grName {
        font-size: 14px;
        font-width: 600px;
        line-height: 22px;
        color: #333;
    }

    .shadow-box {
        background-color: #fff;
        border: 2px solid #fff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    }

</style>

<div class="top">
    <div>
        <img src="./网格化辅导消息推送_files/logo.png" alt="">
        <p>国家税务总局江苏省电子税务局</p>
    </div>
    <div>
        <img src="./网格化辅导消息推送_files/header.png" alt="">
        <p>陈*卿</p>
        <img src="./网格化辅导消息推送_files/xb.png" alt="" class="xb">
    </div>
    <div class="grName shadow-box" style="display: none;">
        <p>欢迎您，<span>陈*卿</span></p>
        <p class="qy_item" style="margin: 5px 0">纳税人名称：<span>常州中韵机械有限公司</span></p>
        <p class="qy_item" style="margin: 5px 0">统一社会信用代码/纳税人识别号：<span>91320411MA1MCT53X4</span></p>
        <div>
            <img src="./网格化辅导消息推送_files/tc.png" alt="">
            <span><a class="logout">退出登陆</a></span>
        </div>
    </div>
</div>
<script>
    //切换自然人企业卡片
    $(function () {
        if (glybz != "Y") {
            $(".qy_item").hide();
        }
    })

    //登出
    var layer_index_logout;
    $(".logout").click(function () {
        layer_index_logout = layer.load();
        logoutOtherApp(0);
        logoutOtherApp(1);
        $.ajax({
            url: '/portal/loginoutThird.do',
            dataType: "JSON",
            type: "POST",
            success: function (json) {
                if (json.RESULT = '0000') {
                    document.cookie = "GDS_PORTAL_NSRSBH='';expires=0;path=/";
                    document.cookie = "WGHFW_DIALOG_10113204000051481241='';expires=0;path=/";
                    document.cookie = "DIALOG_ZCSD_10113204000051481241='';expires=0;path=/";
                    document.cookie = "DIA_DZXY_91320411MA1MCT53X4_30='';expires=0;path=/";
                    /*document.cookie ="DIA_WJDC_

                    91320411MA1MCT53X4='';expires=0;path=/";*/
                    //TODO 遍历删除DIALOG_CONFIG开头的
                    // 	document.cookie = "APP_DIALOG_91320411MA1MCT53X4='';expires=0;path=/";
                    window.location.href = json.DATA;
                    //sso/logout?service\=http\://77.12.56.120/portal
                } else {
                    layer.alert(json.MSG);
                }
                layer.close(layer_index_logout);
            }
        });
        logoutOtherApp(2);
        if ("Y" == "") {
            logoutOtherApp(3);
            logoutOtherApp(4);
            logoutOtherApp(5);
        }
    });

    var timestamp = new Date().getTime();
    var logout_arr = ["shenbao", "shenqing", "wangluofapiao", "shenbao-Y", "shenqing-Y", "wangluofapiao-Y"];

    function logoutOtherApp(index) {
        var url = realNamePrefix + "/" + logout_arr[index] + "/appssologout?t=" + timestamp;
        try {
            $.ajax({
                type: 'get',
                url: url,
                async: true
            });
        } catch (e) {
        }
    };
    $('.xb').hover(function () {
        $('.grName').show()
    });
    $('.grName').hover(
        function () {
            $('.grName').show()
        }
        , function () {
            $('.grName').hide()
        }
    );

</script>

    <div class="nav" id="nav_div">
       <a href="https://etax.jiangsu.chinatax.gov.cn/portal//zj/index.do">首页</a><span>&gt;</span><a>服务提醒</a><span>&gt;</span><a>在线交互</a><span>&gt;</span><a class="pagename">网格化辅导消息推送</a>
    </div>
    <div id="ifa_index">



	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/wghfw.css">
	<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/wghfdxx.css">
	<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/hcp_dialog.css">
	<link type="text/css" rel="stylesheet" href="./网格化辅导消息推送_files/mypagination.css">
	<script type="text/javascript" charset="utf-8" src="./网格化辅导消息推送_files/pagination.js"></script>
	<style>
		.wqrRow {
			font-weight: bold;
		}
	</style>


<div class="top_div">网格化辅导消息推送</div>
<div class="fdxx_div">
	<div id="main">
			<table class="wghfdxx_table">
				<thead>
					<tr>
						<th>序号</th>
						<th>消息主题</th>
						<th>消息内容</th>
						<th>接收时间</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody class="tbody"><tr class="data_tr wqrRow"><td>1</td><td class="xxbt">全面数字化的电子发票将在我省推广使用</td><td title="......">......</td><td>2023-06-03 12:48:05</td><td>未确认</td></tr><tr class="data_tr wqrRow"><td>2</td><td class="xxbt">增值税留抵退税温馨提示</td><td title="......">......</td><td>2023-01-13 09:01:02</td><td>未确认</td></tr><tr class="data_tr wqrRow"><td>3</td><td class="xxbt">增值税留抵退税温馨提示</td><td title="......">......</td><td>2022-12-11 09:02:32</td><td>未确认</td></tr><tr class="data_tr"><td>4</td><td class="xxbt">首次接收数电票-服务实施消息</td><td title="......">......</td><td>2023-05-19 17:10:09</td><td>已确认</td></tr><tr class="data_tr"><td>5</td><td class="xxbt">增值税留抵退税温馨提示</td><td title="......">......</td><td>2022-11-09 09:00:44</td><td>已确认</td></tr><tr class="data_tr"><td>6</td><td class="xxbt">增值税留抵退税温馨提示</td><td title="......">......</td><td>2022-09-17 09:01:49</td><td>已确认</td></tr><tr class="data_tr"><td>7</td><td class="xxbt">全面数字化的电子发票将在我省推广使用</td><td title="......">......</td><td>2022-07-07 20:05:52</td><td>已确认</td></tr></tbody>
			</table>
			<div class="nodata">未查询到数据</div>
		</div>
		<div class="box2" id="box_wghfdxx"><div class="_my-paging-box"><div class="total pg-item">共<span>7</span>条</div><div class="total-page pg-item">共<span>1</span>页</div><select class="sizes pg-item"><option value="10" selected="">10条/页</option></select><div class="link-btn first pg-item disabled" data-current="first">首页</div><div class="link-btn prev pg-item disabled" data-current="prev">上一页</div><ul class="link-list pg-item"><li class="link-btn active" data-current="1">1</li></ul><div class="link-btn next pg-item disabled" data-current="next">下一页</div><div class="link-btn last pg-item disabled" data-current="last">末页</div><div class="jumper pg-item"><span>前往</span><input type="text"><span>页</span></div><div class="link-btn pg-item jump-btn disabled">跳转</div></div></div>
	</div>
	<div id="fdxx_dia" style="display:none;">
		<div class="content_body">
			<div class="title" id="fdxx_title">电子专票服务确认</div>
			<div class="tit">尊敬的纳税人常州中韵机械有限公司（纳税人识别号：91320411MA1MCT53X4）您好：</div>
			<div class="section" id="fdxx_data">感谢您对国家税务总局劝以税务局工作的关心、理解和支持！</div>
			<!-- <div class="right_section">国家税务总局江苏省税务局</div> -->
			<div class="left_section" id="fdxx_jsrq">2021年3月17日</div>
			<div class="table_box" id="fdxx_attach">
				<table border="1" cellspacing="0" cellpadding="0">
					<thead><tr><th>序号</th><th>附件名称</th></tr></thead>
					<tbody id="fdxx_body">
						<tr><td>1</td><td>UKEY操作手册</td></tr>
						<tr><td>2</td><td>电子专票开具指引注意事项</td></tr>
						<tr><td>3</td><td>电子专票开具注意事项</td></tr>
					</tbody>
				</table>
			</div>
			<div class="wxts_info">
				<p style="color:#fd9c7e;">温馨提示</p>
				<p>1、强烈建议您详细查阅附件内容，了解相关政策。</p>
				<p>2、如果您需要人工帮助，可以拨打网格员电话号码。</p>
				<p>3、如果您需要反复查看该消息，请通过网格化辅导消息模块再次查看。</p>
			</div>
		</div>
		<input type="hidden" id="fdxx_uuid">
		<div class="btnbox">
			<div class="checkbox_yzx"><input type="checkbox" id="yzx_check"><span class="yzx_span">以上内容我已知晓</span></div>
			<div class="btn disabled" id="confirm_btn" onclick="confirmAndClose(this)">确认并关闭</div>
		</div>
	</div>
	
	<div style="display:none;" id="pj_dialog">
		<div class="content">
			<div class="line">
				<div class="tit_info">
					<img src="./网格化辅导消息推送_files/face.png" alt="">
					<span>感谢您的评价！评价结果为不满意和非常不满意的，请勾选或文字留言不满意的具体原因，以便我们进行改进，谢谢！</span>
				</div>
			</div>
			<div class="line cl">
				<div class="tit_left">
					办件评价：
				</div>
				<div class="con_right cl">
					<div class="pj_type active" point="5">非常满意</div>
					<div class="pj_type" point="4">满意</div>
					<div class="pj_type" point="3">基本满意</div>
					<div class="pj_type" point="2">不满意</div>
					<div class="pj_type" point="1">非常不满意</div>
				</div>
			</div>
			<div class="container">
				<div class="star line cl active" point="5">
					<div class="tit_left">
						评星分数：
					</div>
					<div class="con_right cl">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
					</div>
				</div>
				<div class="star line cl" point="4">
					<div class="tit_left">
						评星分数：
					</div>
					<div class="con_right cl">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
					</div>
				</div>
				<div class="star line cl" point="3">
					<div class="tit_left">
						评星分数：
					</div>
					<div class="con_right cl">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
					</div>
				</div>
				
				<div class="star line cl" point="2">
					<div class="tit_left">
						评星分数：
					</div>
					<div class="con_right cl">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
					</div>
				</div>
				
				<div class="star line cl" point="1">
					<div class="tit_left">
						评星分数：
					</div>
					<div class="con_right cl">
						<img src="./网格化辅导消息推送_files/star_fill.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
						<img src="./网格化辅导消息推送_files/star_stro.png" alt="" class="stars">
					</div>
				</div>
				
				<div class="line cl checkblock"></div>
				<div class="line cl inputblock">
					<div class="tit_left">
						文字评价：
					</div>
					<div class="con_right cl">
						<textarea id="yjjy_text" class="input" name="" rows="5" cols="" placeholder="（选填）"></textarea>
					</div>
				</div>
			</div>
			<div class="line cl">
				<div class="sub_btn" onclick="submit(this)">提交</div>
			</div>
		</div>		
	</div>
	<input type="hidden" id="refresh_flag">

<script type="text/javascript">
	var fdxx_attach = {};
	var rysf = ("30" == "10" || "30" == "20" || "30" == "30" || "30" == "60");
	var clock;
	var nums;
	var objpz = new Object();
	var pagination;
	var layer_index;
	$(function() {

		objpz = {
			url: "wghfw/queryWghfwxx.do?xxlx=fdxx",
			parent: ".fdxx_div",
			web: "wghfdxx",
			el: "#box_wghfdxx",
			width: 395
		};
		pagination = new paginationTable(objpz);
		$(".wghfdxx_table").on("click", ".data_tr", function(){
			var rowdata = $(this).data();
			showFdxx(rowdata);
		});

        $(".pj_type").on('click',null,function(){
			if(!$(this).hasClass("active")){
				var point = $(this).attr("point");
				$(".pj_type.active").removeClass("active");
				$(this).addClass("active");
				$(".star.active").removeClass("active");
				$(".star[point='" + point + "']").addClass("active");
			}
		})
	});
	
	function submit(obj) {
		if($(obj).hasClass("not_click")) {
			return;
		}
		$(obj).addClass("not_click");
		var yjjy = trimStr($("#yjjy_text").val());
		if(checkStrLen(yjjy)) {
			layer.alert("文字评价超长，请重新填写！");
			$(obj).removeClass("not_click");
			return;
		}
		var bjpj = $(".pj_type.active").attr("point");
		if(!/^[1-5]$/.test(bjpj)) {
			layer.alert("请选择办件评价！");
			$(obj).removeClass("not_click");
			return;
		}
		var uuid = $("#fdxx_uuid").val();
		layer_index = layer.load();
		$.ajax({
			url:"wghfw/submitWghfdQrxx.do",
			type:"POST",
			data:{uuid:uuid,yjjy:yjjy,bjpj:bjpj},
			success:function(data) {
				layer.close(layer_index);
				$(obj).removeClass("not_click");
				if(data) {
					if(data.RESULT == "0000") {
						pagination.loadData();
						layer.alert("提交成功", {closeBtn:0}, function(){
							layer.closeAll();
						});
					} else {
						if(data.MSG) {
							layer.alert(data.MSG);
						} else {
							layer.alert("提交发生异常，请稍后重试！");
						}
					}
				} else {
					layer.alert("提交发生异常，未返回有效数据，请稍后重试！");
				}
			},error:function() {
				$(obj).removeClass("not_click");
				layer.alert("确认请求提交失败！");
				layer.close(layer_index);
			}
		})
	}

	function trimStr(str) {
		if(str) {
			return str.replace(/(^\s+)|(\s+$)/g,'');
		}
		return "";
	}
	function checkStrLen(str, maxLen) {
		var str_len = str.replace(/[\u4e00-\u9fa5]/g,'aaa').length;
		return str_len > maxLen; 
	}
	
	function find(arr, ele) {
		for(var i = 0, len = arr.length; i < len; i++) {
			if(arr[i] === ele){
				return true;
			}
		}
		return false;
	}
function paginationTable(option){
	var _this = this;
	this.width = option.width;
	this.current = 1;
	this.size = 10;
	this.paging = null;
	this.paginationEl = option.el;
	this.url = option.url;
	this.web = option.web;
	this.parent = option.parent;
	this.search = typeof(option.search) == "undefined"?"":option.search;
	this.init = function(o) {
		var mainBlock = $(_this.paginationEl).siblings(".main");
		mainBlock.find(".nodata").hide();
		this.setPaging();
	};
	this.loadData = function() {
		var _this = this;
		var params = {
			page: this.current,
			rows: this.size
		}
		var layerIndex = layer.load(1, {shade: [0.3, "#000"]});
		$.ajax({
			url: basePath + this.url,
			type:"post",
			data:params,
			success: function(res){
				layer.close(layerIndex);
				_this.setTbody(res.rows);
				_this.paging.setTotal(res.total);
			}
		})
	};
	this.setPaging = function() {
		this.paging = new MyPaging(this.paginationEl, {
			size: this.size,
			sizes: [10], // 选择每页条数
			total: 0,
			current: this.current,
			prevHtml: '上一页',
			nextHtml: '下一页',
			layout: 'total, totalPage, sizes, first, prev, pager, next, last, jumper',
			noData: this.noData,
			jump: function() {
				// 这儿的this指向paging对象
				_this.current = this.current; // 设置当前页
				_this.size = this.size; // 设置当前每页多少条
				// 点击页数按钮都会调用
				_this.loadData();
			}
		});
	};
	this.noData = function(){
		var mainBlock = $(_this.paginationEl).siblings(".main");
		mainBlock.find(".nodata").show();
	}
	this.setTbody = function(arr) {
		var str = '';
		$(this.parent).find(".tbody").empty();
		for(var i = 0, len = arr.length; i < len; i++) {
			var item = arr[i];
			dom = $("<tr class='data_tr" + (item.qrbs=="N"?" wqrRow":"") + "' ><td>"+(i+1)+"</td><td class='xxbt'>"+item.xxbt+"</td><td title='" + format(item.xxnr) + "'>"+sliceStr(item.xxnr)+"</td><td>"
			+item.jssj+"</td><td>"+(item.qrbs == 'Y'?"已确认":"未确认")+"</td></tr>");
			dom.data(item);
			$(this.parent).find(".tbody").append(dom);
		}
	}
	$(this.parent).find(".main").height($(window).height() - this.width);
	this.init();
	return this;
}

	function showCommonFdxx(uuid) {
        refreshData("N");
        layer.open({
            type:2,
            title:"详情",
            shadeClose: false,				// 默认点击阴影关闭图层
            content :"wghfw/go_detail.do?uuid="+uuid,	//jquery对象id
            area: ['1000px', '550px'],
            maxmin:true,
            move:false,
            zIndex:3,
            success:function(la){
            },yes:function(la){
                layer.closeAll();
            },end:function(){
                if($("#refresh_flag").val() == "Y") {
                    pagination.loadData();
                }
            }
        });
    }
	
	function showFdxx(rowData) {
		var uuid = rowData.uuid;
		if(!uuid) {
			layer.alert("消息id丢失！");
			return;
		}
		if(rowData.xxlx != "02") {
		    showCommonFdxx(uuid);
		    return;
		}

		$.ajax({
			url:"wghfw/queryXxnrByUuid.do?uuid="+uuid,
			async:false,
			success:function(data) {
				if(data){
					if(data.RESULT == "0000") {
						var fdxxData = data.DATA;
						$("#fdxx_uuid").val(rowData.uuid);
						$("#fdxx_title").text(rowData.xxbt);
						$("#fdxx_data").html(fdxxData.xxnr);
						$("#fdxx_jsrq").text(rowData.jsrq);
						$("#fdxx_body").html("");
						$("#fdxx_attach").hide();
						$("#yzx_check").prop("checked", false);

						if(rowData.fj_bz != 0) {
							var attachs = fdxx_attach.uuid;
							if(attachs && attachs.length > 0) {
								loadAttachTable(attachs);
							} else {
								queryAttachsByUUID(uuid);
							}
						}
						if(rowData.qrbs == 'Y' || !rysf) {
							$("#fdxx_dia .btnbox").hide();
						} else {
							$("#fdxx_dia .btnbox").show();
							if(clock){
								clearInterval(clock);
							}
							nums = 5;
							$("#confirm_btn").disabled = true;
							$("#confirm_btn").addClass("not_click").css("background-color","#d2d5d6").css("color","#000").css("border-color","#d2d5d6");
							clock = setInterval(function(){
								nums--;
								if (nums <= 0) {
									clearInterval(clock); // 清除js定时器
									$("#confirm_btn").disabled = false;
									$("#confirm_btn").css("background-color","#fff").css("color","#0eb8f7").css("border-color","#0eb8f7");
									$("#confirm_btn").removeClass("not_click");
								}
							}, 1000); // 一秒执行一次
							$("#fdxx_dia.btnbox").show();
						}
						layer.open({
							type:1,
							title:"详情",
							id:"fdxx_dialog",
							shadeClose: false,				// 默认点击阴影关闭图层
							content :$("#fdxx_dia"),	//jquery对象id
							area: ['1000px', '550px'],
							move:false,
							zIndex:1,
							success:function(la){
							},yes:function(la){
								layer.closeAll();
							}
						});
					} else {
						layer.alert(data.MSG);
						return;
					}
				} else {
					layer.alert("请求响应失败");
				}
			}, error:function(data){
				layer.alert("请求服务失败");
			}
		})




	}
	function confirmAndClose(obj){
		if($(obj).hasClass("not_click")){
			return;
		}
		if(clock){
			clearInterval(clock);
		}
		if(!$("#yzx_check").is(":checked")){
			layer.alert("请您查阅消息内容并勾选“以上内容我已知晓”");
			return;
		}
		$("#yjjy_text").val("");
		$(".pj_type.active").removeClass("active");
		$(".star.active").removeClass("active");
		$(".pj_type[point='5']").addClass("active");
		$(".star[point='5']").addClass("active");
		layer.open({
			type:1,
			title: "“好差评”意见",
		    border: [0],
		    closeBtn:1,
		    move:false,
		    area: ['auto','auto'],
		    content:$("#pj_dialog"),
		    id:"layer_content",
		    success:function(la){
		    	 la.find(".layui-layer-btn.layui-layer-btn-").remove();
		    	 la.find(".layui-layer").attr("width","auto").attr("height","auto");
		    	 la.find("#layer_content").css({"height":"auto"})
		    },cancel:function(){
		    } 
		});
	}
	function loadAttachTable(attachs) {
		fdxx_attach.uuid = attachs;
		var body_str = "";
		for(var i=0,len=attachs.length;i<len;i++) { 
			body_str += "<tr><td>"+(i+1)+"</td><td><a href='"+attachs[i].ljdz+"' target='_blank'>"+attachs[i].wjm+"</a></td></tr>";
			// download='"+attachs[i].ljdz+"' 
		}
		$("#fdxx_body").html(body_str);
		$("#fdxx_attach").show();
	}
	
	function queryAttachsByUUID(uuid){
		$.ajax({
			url:"wghfw/queryWghfdxxFjxx.do?uuid="+uuid,
			async:false,
			success:function(data) {
				if(data && data.RESULT == "0000") {
					attachs = data.DATA;
					if(attachs && attachs.length > 0) {
						loadAttachTable(attachs);
					}
				}
			}
		})
	}
    function sliceStr(str){
        if(str && str.length >= 50){
            return str.slice(0, 50) + "...";
        } else {
            return str;
        }
    }
	function format(xxnr) {
		if(xxnr) {
			return xxnr.replace(/\</g,"&lt;").replace(/\>/g,"&gt;");
		} else {
			return "";
		}
	}
	function refreshData(flag) {
	    $("#refresh_flag").val(flag);
	}
</script>


</div>
</div>

<script type="text/javascript">
    var header_height = 145;
    $(function () {
        var navs = '[{"yhlx":"0","applx_bh":"060","applx_mc":"服务提醒","sj_applx_bh":"0"},{"yhlx":"1","applx_bh":"06012","applx_mc":"在线交互","sj_applx_bh":"060"}]';
        if (navs && navs != "[]" && navs != "null") {
            navs = JSON.parse(navs);
        } else {
            var preAppName = '';
            if (preAppName && preAppName != "null") {
                navs = JSON.parse(preAppName);
            } else {
                navs = null;
            }
        }
        if (navs) {
            for (var i = 0; i < navs.length; i++) {
                $(".pagename").before('<a>' + navs[i]["applx_mc"] + '</a><span>></span>');
            }
        }

        var message = "";
        if (message && message != "null") {
            layer.alert(message, {
                title: "提示", cancel: function () {
                    window.top.closeWindow();
                }
            }, function () {
                window.top.closeWindow();
            })
        }else {
            reload();
        }
    })

    //加载
    function reload() {
        var isLoad = "Y";
        $(".pagename").html(decodeURI("网格化辅导消息推送".replace(/_/g, "%")))
        $(".pagename").click(function () {
            window.location.reload();
        });
        if (isLoad == "Y") {
            $("#ifa_index").load("/portal/wghfw/index.do?sign=wghfdxx".replace(/%26/g, "&"));
        } else {
            $("#ifa_index").append('<iframe height="' + ($("body").height() - header_height) + '"id="contentiframe" src="' + ("/portal/wghfw/index.do?sign=wghfdxx".replace(/%26/g, "&")) + '"></iframe>');
        }
        //$("#index").load("/portal/wghfw/index.do?sign=wghfdxx".replace(/%26/g, "&"));
        ////$("#ifa_index").append('<iframe height="' + ($("body").height() - header_height) + '"id="contentiframe" src="' + ("/portal/wghfw/index.do?sign=wghfdxx".replace(/%26/g, "&")) + '"></iframe>');

    }
    $.fn.smartMenu = function () {
    }
    window.Index_tab.add_tab = function (item) {
        $("#ifa_index").empty();
        //$("#index").load(item.src.replace(/%26/g, "&"));
        $("#ifa_index").append('<iframe height="' + ($("body").height() - header_height) + '"id="contentiframe" src="' + (item.src.replace(/%26/g, "&")) + '"></iframe>');

        $(".nav").append('<span>></span><a class="pagename2">' + item.title + '</a>');
        $(".pagename2").click(function () {
            $("#ifa_index").empty();
            $("#ifa_index").append('<iframe height="' + ($("body").height() - header_height) + '"id="contentiframe" src="' + (item.src.replace(/%26/g, "&")) + '"></iframe>');
        });
    }
</script>
<div class="layui-layer-move"></div></body></html>